// AutoCADDefaultStyle.h: interface for the AutoCADDefaultStyle class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_AUTOCADDEFAULTSTYLE_H__0AF4EC2A_005E_4417_B4D8_B6229EF8ED84__INCLUDED_)
#define AFX_AUTOCADDEFAULTSTYLE_H__0AF4EC2A_005E_4417_B4D8_B6229EF8ED84__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "AutoCADMenuStyle.h"
#include "SmartPointer.h"
#include "AutoCADMenu.h"

class DllExport AutoCADDefaultStyle : public AutoCADMenuStyle 
{
public:
	AutoCADDefaultStyle(const CString& strFile, const CString& strMainGroup, INT nPop = 10);
	AutoCADDefaultStyle(UEPHSMENU::AutoCADMenu *pCADMenu, INT nPop = 10);
	virtual ~AutoCADDefaultStyle();

public:
	virtual UESoft::ErrorStatus ShowMenu(const CStringArray& theGroups = CStringArray()); 
	virtual UESoft::ErrorStatus HideMenu(const CStringArray& theGroups = CStringArray());

private:
	UESoft::ErrorStatus GenerateMenu();
	UESoft::ErrorStatus LoadMenu();
	UESoft::ErrorStatus ShowMenu_();
	
private:
	CString m_strMenuFile;
	BOOL m_bIsLoadMenuFile;
	CString m_strMainGroup;
	INT m_nPop;
	UEPHSMENU::AutoCADMenu* m_pMenu;

	static unsigned long m_nMenuIndex;
};

typedef UeSmartPtr<AutoCADDefaultStyle> AutoCADDefaultStylePtr;
#endif // !defined(AFX_AUTOCADDEFAULTSTYLE_H__0AF4EC2A_005E_4417_B4D8_B6229EF8ED84__INCLUDED_)
